import request from '@/utils/request'

// 查询赛事成员列表
export function listGamemember(query) {
  return request({
    url: '/baseplatform/gamemember/list',
    method: 'get',
    params: query
  })
}

// 查询赛事成员详细
export function getGamemember(id) {
  return request({
    url: '/baseplatform/gamemember/' + id,
    method: 'get'
  })
}

// 新增赛事成员
export function addGamemember(data) {
  return request({
    url: '/baseplatform/gamemember',
    method: 'post',
    data: data
  })
}

// 修改赛事成员
export function updateGamemember(data) {
  return request({
    url: '/baseplatform/gamemember',
    method: 'put',
    data: data
  })
}

// 删除赛事成员
export function delGamemember(id) {
  return request({
    url: '/baseplatform/gamemember/' + id,
    method: 'delete'
  })
}
